﻿@model List<VM_Sys_Module>
@{
	foreach (VM_Sys_Module module in Model)
	{
		<li class="treeview @(ViewBag.CurrentM==module.Code?"active":"")">
			<a href="#">
				<i class="@(module.Icon)"></i> <span>@(module.Name)</span>
				<span class="pull-right-container">
					<i class="fa fa-angle-left pull-right"></i>
				</span>
			</a>
			<ul class="treeview-menu">
				@foreach (VM_Sys_ModuleService service in module.Services)
				{
					<li class='@(ViewBag.CurrentS==service.Code ?"active":"")'><a href="@(service.Url)"><i class="@(service.Icon)"></i>@(service.Name)</a></li>
				}
			</ul>
		</li>
	}
}
@*<li class="treeview @(ViewBag.CurrentM=="/"?"active":"")">
			<a href="#">
				<i class="fa fa-dashboard"></i> <span>首页</span>
				<span class="pull-right-container">
					<i class="fa fa-angle-left pull-right"></i>
				</span>
			</a>
			<ul class="treeview-menu">
				<li class='@(ViewBag.CurrentS=="/index" ?"active":"")'><a href="/"><i class="fa fa-dashboard"></i>起始页</a></li>
			</ul>
		</li>
		<li class="treeview @(ViewBag.CurrentM=="/mall/member"?"active":"")">
			<a href="#">
				<i class="fa fa-users"></i> <span>会员管理</span>
				<span class="pull-right-container">
					<i class="fa fa-angle-left pull-right"></i>
				</span>
			</a>
			<ul class="treeview-menu">
				<li class='@(ViewBag.CurrentS=="/mall/member/list" ?"active":"")'><a href="/mall/member/list"><i class="fa fa-user"></i> 会员列表</a></li>
				<li class='@(ViewBag.CurrentS=="/mall/member/rmap" ?"active":"")'><a href="/mall/member/rmap"><i class="fa fa-sitemap"></i> 直推图</a></li>
				<li class='@(ViewBag.CurrentS=="/mall/member/pmap" ?"active":"")'><a href="/mall/member/pmap"><i class="fa fa-sitemap"></i> 接点图</a></li>
			</ul>
		</li>
		<li class="treeview @(ViewBag.CurrentM=="/mall/finance"?"active":"")">
			<a href="#">
				<i class="fa fa-users"></i> <span>财务管理</span>
				<span class="pull-right-container">
					<i class="fa fa-angle-left pull-right"></i>
				</span>
			</a>
			<ul class="treeview-menu">
				<li class='@(ViewBag.CurrentS=="/mall/memberaccount/list" ?"active":"")'><a href="/mall/memberaccount/list"><i class="fa fa-user"></i> 奖金统计</a></li>
				<li class='@(ViewBag.CurrentS=="/mall/memberbonus/list" ?"active":"")'><a href="/mall/memberbonus/list"><i class="fa fa-sitemap"></i> 奖金明细</a></li>
				<li class='@(ViewBag.CurrentS=="/mall/memberpay/list" ?"active":"")'><a href="/mall/memberpay/list"><i class="fa fa-sitemap"></i> 充值管理</a></li>
	<li class='@(ViewBag.CurrentS=="/mall/membercash/list" ?"active":"")'><a href="/mall/membercash/list"><i class="fa fa-sitemap"></i> 提现管理</a></li>
	<li class='@(ViewBag.CurrentS=="/mall/membertrans/list" ?"active":"")'><a href="/mall/membertrans/list"><i class="fa fa-sitemap"></i> 转账明细</a></li>
	<li class='@(ViewBag.CurrentS=="/mall/finance/stat" ?"active":"")'><a href="/mall/finance/stat"><i class="fa fa-sitemap"></i> 财务统计</a></li>
		</ul>
	</li>*@
